package com.asset.entity;

import java.util.Date;

public class Asset {
	// 资产ID
	private  Integer id;
	// 资产名称
	private  String name;
	// 资产类型
	private  Integer type;
	// 资产编码
	private  String code;
	// 管理员ID
	private  Integer manager_id;
	// 负责人ID
	private  Integer person_responsible_id;
	// 状态
	private  Integer status;
	private Status statusObj;
	// 规格型号
	private  String specification;
	// 存储位置
	private  String storage_location;
   // 所属公司
   private Integer affiliated_company;
	   // 原值
	   private Double original_value;
	   // 月折旧
	   private Double month_depreciation;
	   // 净值
	   private Double net_value;
	   // 累计折旧
	   private Double sum_depreciation;
	   private  User  asset_user;
	   private  User  person_responsible;
	   private  User  manager;
  // 图片
  private  String picture;
  // 相关数据
  private  String relevant_data;
  // 入库时间
  private Date receipt_time;
// 资产用户ID
private  Integer asset_user_id;
// 残值价值
private  Double residual_value;
// 折旧率
private  Double depreciation_rate;
// 期数
private  Integer period;
// 总期数
private  Integer sum_period;
// 剩余期数
private  Integer remaining_period;
// 使用寿命
private Integer service_life;
// 是否允许折旧
	private  Integer allowed;

	public Integer getAllowed() {
		return allowed;
	}

	public Status getStatusObj() {
		return statusObj;
	}

	public Asset(Integer affiliated_company, Integer allowed, User asset_user, Integer asset_user_id, String code, Double depreciation_rate, Integer id, User manager, Integer manager_id, Double month_depreciation, String name, Double net_value, Double original_value, Integer period, User person_responsible, Integer person_responsible_id, String picture, Date receipt_time, String relevant_data, Integer remaining_period, Double residual_value, Integer service_life, String specification, Integer status, Status statusObj, String storage_location, Double sum_depreciation, Integer sum_period, Integer type) {
		this.affiliated_company = affiliated_company;
		this.allowed = allowed;
		this.asset_user = asset_user;
		this.asset_user_id = asset_user_id;
		this.code = code;
		this.depreciation_rate = depreciation_rate;
		this.id = id;
		this.manager = manager;
		this.manager_id = manager_id;
		this.month_depreciation = month_depreciation;
		this.name = name;
		this.net_value = net_value;
		this.original_value = original_value;
		this.period = period;
		this.person_responsible = person_responsible;
		this.person_responsible_id = person_responsible_id;
		this.picture = picture;
		this.receipt_time = receipt_time;
		this.relevant_data = relevant_data;
		this.remaining_period = remaining_period;
		this.residual_value = residual_value;
		this.service_life = service_life;
		this.specification = specification;
		this.status = status;
		this.statusObj = statusObj;
		this.storage_location = storage_location;
		this.sum_depreciation = sum_depreciation;
		this.sum_period = sum_period;
		this.type = type;
	}

	public void setStatusObj(Status statusObj) {
		this.statusObj = statusObj;
	}

	public User getAsset_user() {
		return asset_user;
	}

	public void setAsset_user(User asset_user) {
		this.asset_user = asset_user;
	}

	public User getManager() {
		return manager;
	}

	public void setManager(User manager) {
		this.manager = manager;
	}

	public User getPerson_responsible() {
		return person_responsible;
	}

	public void setPerson_responsible(User person_responsible) {
		this.person_responsible = person_responsible;
	}

	public void setAllowed(Integer allowed) {
		this.allowed = allowed;
	}

	public Double getDepreciation_rate() {
		return depreciation_rate;
	}

	public void setDepreciation_rate(Double depreciation_rate) {
		this.depreciation_rate = depreciation_rate;
	}

	public Integer getPeriod() {
		return period;
	}

	public void setPeriod(Integer period) {
		this.period = period;
	}

	public Integer getRemaining_period() {
		return remaining_period;
	}

	public void setRemaining_period(Integer remaining_period) {
		this.remaining_period = remaining_period;
	}

	public Double getResidual_value() {
		return residual_value;
	}

	public void setResidual_value(Double residual_value) {
		this.residual_value = residual_value;
	}

	public Integer getService_life() {
		return service_life;
	}

	public void setService_life(Integer service_life) {
		this.service_life = service_life;
	}

	public Integer getSum_period() {
		return sum_period;
	}

	public void setSum_period(Integer sum_period) {
		this.sum_period = sum_period;
	}



	public Asset() {
	}

	public Integer getAffiliated_company() {
		return affiliated_company;
	}

	public void setAffiliated_company(Integer affiliated_company) {
		this.affiliated_company = affiliated_company;
	}

	public Integer getAsset_user_id() {
		return asset_user_id;
	}

	public void setAsset_user_id(Integer asset_user_id) {
		this.asset_user_id = asset_user_id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getManager_id() {
		return manager_id;
	}

	public void setManager_id(Integer manager_id) {
		this.manager_id = manager_id;
	}

	public Double getMonth_depreciation() {
		return month_depreciation;
	}

	public void setMonth_depreciation(Double month_depreciation) {
		this.month_depreciation = month_depreciation;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getNet_value() {
		return net_value;
	}

	public void setNet_value(Double net_value) {
		this.net_value = net_value;
	}

	public Double getOriginal_value() {
		return original_value;
	}

	public void setOriginal_value(Double original_value) {
		this.original_value = original_value;
	}

	public Integer getPerson_responsible_id() {
		return person_responsible_id;
	}

	public void setPerson_responsible_id(Integer person_responsible_id) {
		this.person_responsible_id = person_responsible_id;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Date getReceipt_time() {
		return receipt_time;
	}

	public void setReceipt_time(Date receipt_time) {
		this.receipt_time = receipt_time;
	}

	public String getRelevant_data() {
		return relevant_data;
	}

	public void setRelevant_data(String relevant_data) {
		this.relevant_data = relevant_data;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getStorage_location() {
		return storage_location;
	}

	public void setStorage_location(String storage_location) {
		this.storage_location = storage_location;
	}

	public Double getSum_depreciation() {
		return sum_depreciation;
	}

	public void setSum_depreciation(Double sum_depreciation) {
		this.sum_depreciation = sum_depreciation;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Asset(Integer affiliated_company, Integer allowed, Integer asset_user_id, String code, Double depreciation_rate, Integer id, Integer manager_id, Double month_depreciation, String name, Double net_value, Double original_value, Integer period, Integer person_responsible_id, String picture, Date receipt_time, String relevant_data, Integer remaining_period, Double residual_value, Integer service_life, String specification, Integer status, String storage_location, Double sum_depreciation, Integer sum_period, Integer type) {
		this.affiliated_company = affiliated_company;
		this.allowed = allowed;
		this.asset_user_id = asset_user_id;
		this.code = code;
		this.depreciation_rate = depreciation_rate;
		this.id = id;
		this.manager_id = manager_id;
		this.month_depreciation = month_depreciation;
		this.name = name;
		this.net_value = net_value;
		this.original_value = original_value;
		this.period = period;
		this.person_responsible_id = person_responsible_id;
		this.picture = picture;
		this.receipt_time = receipt_time;
		this.relevant_data = relevant_data;
		this.remaining_period = remaining_period;
		this.residual_value = residual_value;
		this.service_life = service_life;
		this.specification = specification;
		this.status = status;
		this.storage_location = storage_location;
		this.sum_depreciation = sum_depreciation;
		this.sum_period = sum_period;
		this.type = type;
	}
}